package cn.lg.soar.system.feign;


import cn.lg.soar.core.annotations.ApiClient;
import cn.lg.soar.system.api.model.TemplateCache;
import cn.lg.soar.system.api.service.ITemplateApi;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 字典接口
 * @author luguoxiang
 * @date 2021-08-11
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@ConditionalOnMissingClass("cn.lg.soar.system.biz.modules.general.client.TemplateApiClient")
@ApiClient
@FeignClient(name="system", path= "client/template", contextId = "TemplateApiFeign")
public interface TemplateApiFeign extends ITemplateApi {

    @RequestMapping(value = "getById", method = RequestMethod.GET)
    @Override
    TemplateCache getById(@RequestParam("id") Long id);

    @RequestMapping(value = "getByCode", method = RequestMethod.GET)
    @Override
    TemplateCache getByCode(@RequestParam("code") String code);

}
